Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@modular-toolkit/demo-ui

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modular-toolkit/demo-ui

Demo user interface module

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-73.33%
Maintainers
2
Weekly downloads
 
Created
Source

demo-ui

This demo package contains presenational components for the user interface of the Modular Toolkit demo.

Installation

npm install --save @modular-toolkit/demo-ui

Usage

The package contains various React components which you can use like this:

import React from 'react';
import {
    Header,
    Footer,
    Button,
    List,
    ListItem,
    Box,
    Spinner
} from '@modular-toolkit/ui';

function MyComponent({ data, load }) {
    if (!data) {
      return (
        <Box>
          <Spinner />
        </Box>
      );
    }
    return (
      <Box>
        <Header title="My List of Links" />
        <List>
          {data.map(({ title, url }, index) => (
            <ListItem key={`item${index}`}>
              <a target="blank" href={url}>
                {title}
              </a>
            </ListItem>
          ))}
        </List>
        <Footer>
          <Button handleClick={load} label="Update" />
        </Footer>
      </Box>
    );
}

Change Log

  • See CHANGELOG.md

Contribution Guidelines

License

MIT licensed

Copyright © 2018 mobile.de GmbH

FAQs

Package last updated on 17 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc